home *** CD-ROM | disk | FTP | other *** search
/ Graphics Plus / Graphics Plus.iso / general / raytrace / rayshade / graphtal.lzh / Graphtal.Amiga / LineDevice.h < prev    next >
C/C++ Source or Header  |  1992-11-17  |  1KB  |  52 lines

  1. /*
  2.  * LineDevice.h - class definition simple line device driver.
  3.  *
  4.  * Copyright (C) 1992, Christoph Streit (streit@iam.unibe.ch)
  5.  *                     University of Berne, Switzerland
  6.  * All rights reserved.
  7.  *
  8.  * This software may be freely copied, modified, and redistributed
  9.  * provided that this copyright notice is preserved on all copies.
  10.  *
  11.  * You may not distribute this software, in whole or in part, as part of
  12.  * any commercial product without the express consent of the authors.
  13.  *
  14.  * There is no warranty or other guarantee of fitness of this software
  15.  * for any purpose.  It is provided solely "as is".
  16.  *
  17.  */
  18.  
  19. #ifndef LineDevice_H
  20. # define LineDevice_H
  21.  
  22. #include "DeviceDriver.h"
  23. #include "BaseWindow.h"
  24. #include "ViewTransform.h"
  25.  
  26. /*___________________________________________________________ LineDevice
  27.  *
  28.  * Simple line drawing device driver. Ignores width of lines 
  29.  * and macro definitions. Uses BaseWindow class to draw to the screen.
  30.  * LineDevice sets camera position if none is provided by the user.
  31.  */
  32.  
  33. class LineDevice : public DeviceDriver 
  34. {
  35. public:
  36.   LineDevice(BaseWindow*, Options*);
  37.   ~LineDevice();
  38.  
  39.   void begin();
  40.   void end(const BoundingBox&);
  41.   void cylinder(const Vector&, const Vector&, real);
  42.   void cone(const Vector&, real, const Vector&, real);
  43.   void polygon(Polygon*);
  44.   void sphere(const Vector&, real);
  45.  
  46. private:
  47.   BaseWindow* w;
  48. };
  49.  
  50. #endif // LineDevice_H
  51.  
  52.